package com.ruoyi.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 工程复盘目录对象 project_recovery
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
public class ProjectRecovery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工程复盘主键 */
    private Long recoveryId;

    /** 项目主键 */
    @Excel(name = "项目主键")
    private Long projectId;

    /** 工程复盘标题 */
    @Excel(name = "工程复盘标题")
    @NotBlank(message = "目录名称不能为空")
    @Length(min=0,max = 15 ,message = "长度不能大于15个字符")
    private String recoveryTitle;

    /** 排序 */
    @Excel(name = "排序")
    private Integer recoverySort;

    /** 工程复盘上级目录 */
    @Excel(name = "工程复盘上级目录")
    private Long recoveryPid;

    /** 级别 */
    @Excel(name = "级别")
    private Integer level;

    public Long getRecoveryId() {
        return recoveryId;
    }

    public void setRecoveryId(Long recoveryId) {
        this.recoveryId = recoveryId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getRecoveryTitle() {
        return recoveryTitle;
    }

    public void setRecoveryTitle(String recoveryTitle) {
        this.recoveryTitle = recoveryTitle;
    }

    public Integer getRecoverySort() {
        return recoverySort;
    }

    public void setRecoverySort(Integer recoverySort) {
        this.recoverySort = recoverySort;
    }

    public Long getRecoveryPid() {
        return recoveryPid;
    }

    public void setRecoveryPid(Long recoveryPid) {
        this.recoveryPid = recoveryPid;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "ProjectRecovery{" +
                "recoveryId=" + recoveryId +
                ", projectId=" + projectId +
                ", recoveryTitle='" + recoveryTitle + '\'' +
                ", recoverySort=" + recoverySort +
                ", recoveryPid=" + recoveryPid +
                ", level=" + level +
                '}';
    }

}
